
class UploadedFile

  def self.save(upload)
    n = upload.original_filename 
    dir = "public/upload"
    path = File.join( dir,n)
    File.open(path, "wb") { |f| f.write(upload.read) }
  end
  
end